# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ToolResults.V1beta3.Model.ListStepThumbnailsResponse do
  @moduledoc """
  A response containing the thumbnails in a step.

  ## Attributes

  *   `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A continuation token to resume the query at the next item. If set, indicates that there are more thumbnails to read, by calling list again with this value in the page_token field.
  *   `thumbnails` (*type:* `list(GoogleApi.ToolResults.V1beta3.Model.Image.t)`, *default:* `nil`) - A list of image data. Images are returned in a deterministic order; they are ordered by these factors, in order of importance: * First, by their associated test case. Images without a test case are considered greater than images with one. * Second, by their creation time. Images without a creation time are greater than images with one. * Third, by the order in which they were added to the step (by calls to CreateStep or UpdateStep).
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :nextPageToken => String.t() | nil,
          :thumbnails => list(GoogleApi.ToolResults.V1beta3.Model.Image.t()) | nil
        }

  field(:nextPageToken)
  field(:thumbnails, as: GoogleApi.ToolResults.V1beta3.Model.Image, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.ToolResults.V1beta3.Model.ListStepThumbnailsResponse do
  def decode(value, options) do
    GoogleApi.ToolResults.V1beta3.Model.ListStepThumbnailsResponse.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.ToolResults.V1beta3.Model.ListStepThumbnailsResponse do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
